package thinkinjava1.ch10;

import java.io.BufferedInputStream;
import java.io.DataInputStream;
import java.io.FileInputStream;
import java.io.IOException;

/**
 * Created by BobbyGu on 2017/2/23.
 */
public class TestEOF {
    public static void main(String[] args) {
        try {
            DataInputStream in = new DataInputStream(
                    new BufferedInputStream(
                            new FileInputStream("src/thinkinjava1.ch10/TestEo.java")
                    )
            );
            while (in.available() != 0)
                System.out.print((char) in.readByte());
        } catch (IOException e) {
            System.err.println("IOException");
        }
    }
}
